package com.ctf.soft.ms.controls.common;

import com.ctf.soft.ms.dao.dto.manage.LoginUser;
import org.springframework.stereotype.Controller;

import javax.servlet.http.HttpSession;

@Controller
public class BaseController {

	public LoginUser loadSession(HttpSession session) {
		LoginUser user = null;
		if (session.getAttribute("UserSession") != null) {
			user = (LoginUser) session.getAttribute("UserSession");
		}
		return user;
	}

}
